package com.lujianfei.netease_android_mvp

import com.lujianfei.netease_android_mvp.base.BasePresenter
import com.lujianfei.netease_android_mvp.base.BaseView
import com.lujianfei.netease_android_mvp.bean.MainBean
import java.util.*

interface MainContract {
    /**
     * UI 相关的操作
     */
    interface View : BaseView {
        fun setData(data: ArrayList<MainBean>)
        fun showLoading()
        fun hideLoading()
    }

    /**
     * 业务逻辑相关操作
     */
    abstract class Presenter(view: View) : BasePresenter<View>(view) {
        abstract fun loadData()
    }
}